<?php
    $texto="";
    if($tipo=="1"){
        $texto="acuerdo";
    }else{
        $texto="acta";
    }
?>
<?php if($cant_documento>0){ ?>
    <?php $onlyFirstTime=true; ?>
    <?php foreach ($list_documento as $row){ ?>
        <div class="item_acuerdo" onclick="show_doc({'url':'<?php echo url_for('evaluar_'.$texto.'/index') ?>','tipo':'<?php echo $texto ?>'},'<?php echo $row[0] ?>',this)">
            <div id="bar-<?php echo $row[0] ?>" style="float: left;width: 6px;height: 40px;margin-top: 5px;margin-left: 2px; <?php if($row[4]== 1 ){ echo 'background: #F13E33';} ?>"></div>
            <div style="float: left;">
                <ul class="ul_text texto_doc" >
                    <li><?php echo $row[1] ?></li>
                    <li>de : <?php echo $row[2] ; ?>  <span style="float: right;padding-right: 5px;"><?php echo $row[3] ?></span></li>
                </ul>
            </div>
        </div>
        <?php if($onlyFirstTime): ?>
            <script type="text/javascript">
                f_show_detail_doc({
                    "url":'<?php echo url_for('evaluar_'.$texto.'/index') ?>',
                    "tipo":'<?php echo $texto ?>'
                },'<?php echo $row[0] ?>');
            </script>
          <?php $onlyFirstTime=false; ?>
        <?php endif; ?>
    <?php } ?>
<?php }else{ ?>
<span class="texto" style="padding-left: 88px;">
       No Hay Solicitudes
</span>
<?php } ?>